package com.sdhs.think.common.persistence;

import java.io.Serializable;

import org.springframework.transaction.annotation.Transactional;
@Transactional(readOnly = true)
public abstract class BaseEntity<T> implements Serializable{

	private static final long serialVersionUID = 1L;
	/*
	 * 实体编号（唯一标识）
	 */
	protected String id;
	//private String dbName;

	public BaseEntity() {
		super();
	}

	public BaseEntity(String id) {
		super();
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	
	public String getDbName() {
		//return dbName;
		//TODO从配置文件中取
		return "mysql";
	}


	/**
	 * 删除标记（0：正常；1：删除；2：审核；）
	 */
	public static final String DEL_FLAG_NORMAL = "0";
	public static final String DEL_FLAG_DELETE = "1";
	public static final String DEL_FLAG_AUDIT = "2";
}
